﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services;
using FwProject.Restaurant.Dto;
using Microsoft.AspNetCore.Mvc;

namespace FwProject.Restaurant
{
    public interface ILoadingCarAppService : IApplicationService
    {
        /// <summary>
        /// 添加一个装车信息
        /// </summary>
        /// <returns>The create.</returns>
        /// <param name="input">Input.</param>
        Task<Guid> Create(LoadingCarInputDto input);


        /// <summary>
        /// 修改装车明细
        /// </summary>
        /// <returns>The create.</returns>
        /// <param name="input">Input.</param>
        Task Update(Guid id, LoadingCarInputDto input);
        /// <summary>
        /// 返回装车明细信息
        /// </summary>
        /// <returns>The by identifier async.</returns>
        /// <param name="id">Identifier.</param>
        [HttpGet]
        Task<LoadingCarDto> GetByIdAsync(Guid id);
        /// <summary>
        /// 返回装车明细信息列表
        /// </summary>
        /// <returns>The paged list async.</returns>
        /// <param name="id">装车明细编号</param>

        [HttpGet]
        Task<X.PagedList.IPagedList<LoadingCarDto>> GetPagedListAsync(int pageIdx, int pageSize, Guid loadcarId, DateTime? begindateTime, DateTime? enddatetime);


        Task<List<LoadingCarDto>> GetAllListByloadId(Guid id);
    }
}
